package org.wuliu.dao;

import org.apache.ibatis.annotations.Param;
import org.wuliu.pojo.Perm;

import java.util.List;

public interface PermDao extends CommonDao<Perm,Integer> {
    public List<Perm> getByPid(@Param("pid")Integer pid);
    public List<Perm> getUserPerm(@Param("uid")Integer uid);
    public List<Perm> getone(@Param("id") Integer id);
    public List<Perm> gettwo(@Param("id") Integer id);
    public Integer[] getRolePerm(@Param("id")Integer id);
    public List<Perm> getByJi(@Param("parentId")Integer parentId);
}
